class AuthD::Response
	IPC::JSON.message Login, 1 do
		property uid    : UInt32
		property token  : String
		property current_email  : String? = nil
		property pending_email  : String? = nil
		def initialize(@token, @uid, @current_email, @pending_email)
		end

		def to_s(io : IO)
			super io
			io << " (uid: #{@uid})"
		end
	end
	AuthD.responses << Login
end
